package com.itheima.home_work.how_long_live;

import java.time.Duration;
import java.time.LocalDate;
import java.time.LocalDateTime;

public class Test {
    public static void main(String[] args) {
        // 计算一下你活了多少天

        LocalDateTime now = LocalDateTime.now();

        LocalDateTime birthday = LocalDateTime.of(1992, 4, 9, 0, 0, 0);

        long days = Duration.between(birthday, now).toDays();

        System.out.println("活了 " + days + " 天了");
    }
}
